Represents a listener object used by LiveLinq to receive notifications of changes to property values in a collection element object.
Represents a listener object used by LiveLinq to receive notifications of changes to property values in a collection element object.

Namespace:  C1.LiveLinq.Listeners
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
public abstract class PropertyChangeListener<T> : IPropertyChangeListener<T>, 
	IListener<T>, IListener, INotifyPropertyChanged
Visual Basic
Public MustInherit Class PropertyChangeListener(Of T) _
	Implements IPropertyChangeListener(Of T), IListener(Of T),  _
	IListener, INotifyPropertyChanged

Type Parameters

T
The type of the elements in the collection.

Remarks

In most cases, the default listener mechanism performs its function and does not need user intervention. As an advanced functionality, LiveLinq allows the user to customize default listeners. It may be needed in those rare cases when you use IndexedCollection<(Of <(<'T>)>)> with element class T that does not provide property change notifications, and you can't add such notifications, nor by deriving the class from IndexableObject nor by other means, but you have some other way of knowing when property changes occur (maybe you can listen to some events, for example).

Then you can define your own class derived from the base class PropertyChangeListener<T> and pass an object of that class to the IndexedCollection<(Of <(<'T>)>)> constructor.

Inheritance Hierarchy

System..::..Object
  C1.LiveLinq.Listeners..::..PropertyChangeListener<(Of <(<'T>)>)>

See Also